import { ApiProperty } from '@nestjs/swagger'

export class UserDto {
  @ApiProperty({ description: '用户名', example: 'user1' })
  username: string
  @ApiProperty({ description: '密码', example: 'user1' })
  password: string
  @ApiProperty({ description: '职位', example: ['tool', 'human'] })
  jobs: [string]
}

export class FindUpdateDto {
  @ApiProperty({ description: '密码', example: 'user1' })
  password: string
  @ApiProperty({ description: '要修改的职位', example: ['凹凸曼', '奥特曼'] })
  jobs: [string]
}

export class EditUserDto {
  @ApiProperty({ description: '密码', example: 'user1' })
  password: string
  @ApiProperty({ description: '职位', example: ['tool', 'human'] })
  jobs: [string]
}
